package com.gxa.insurance.mapper;

import com.gxa.insurance.pojo.Card;

import java.util.List;
import java.util.Map;

/**
 * @InterfaceName CardMapper
 * @Description 车主卡mapper
 * @Author Oneby
 * @Date 2022/6/7 21:34
 * @Version 1.0
 */
public interface CardMapper {

    void insert(Card card);

    List<Card> selectByPage(Integer offset,Integer size);

    Integer selectCount();

    List<Card> selectAll();

    List<Card> selectLikeName(Map map);

    Integer selectLikeCount(Map map);

    List<Card> selectById(Integer id);

    Integer update(Card card);

    Integer deleteById(Integer id);


    //按照车牌号查询
    List<Card> selectByCarId(String carId);

}
